﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="my_account.aspx.cs" Inherits="my_account" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="uid" HeaderText="uid" SortExpression="uid" Visible="false"/>
            <asp:BoundField DataField="pay_date" HeaderText="支付日期" SortExpression="pay_date" />
            <asp:TemplateField HeaderText="订单号" SortExpression="order_no">
                <ItemTemplate>
                    <a href='order.aspx?pnr=<%# Eval("order_no") %>'><%# Eval("order_no") %></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="points" HeaderText="积分" SortExpression="points" />
            <asp:BoundField DataField="remark" HeaderText="备注" SortExpression="remark" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DB %>"
        SelectCommand="get_my_account" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:SessionParameter Name="uid" SessionField="UID" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

